package SmartHome.commands;

import SmartHome.devices.AirConditioner;

public class AirConditionerCommand implements Command {
    private final AirConditioner airConditioner;

    public AirConditionerCommand(AirConditioner airConditioner) {
        this.airConditioner = airConditioner;
    }
    @Override
    public void execute() {
        airConditioner.start();
    }

    @Override
    public void undo() {
        airConditioner.turnOff();
    }
}
